﻿import React from 'react';
import {actions} from 'mirrorx';
import {Button} from 'antd-mobile';

import { FormattedMessage} from 'react-intl';

class App extends React.Component { 
	constructor(props) {
		super(props);
	} 

	componentDidMount(){
		
    }

	toSurrenderDetail =()=> {		
		let urlparam = `?policyNo=${T.urlQuery("policyNo")}&posNo=${T.urlQuery("posNo")}&chooseId=${T.urlQuery("chooseId")}&insures=${T.urlQuery("insures")}&states=${T.urlQuery("states")}&reason=${T.urlQuery("reason")}&feeAmount=${T.urlQuery("feeAmount")}`;
		actions.routing.push("surrender-detail"+urlparam);
	}
	
	
	render() {		

		return (<div className="">
			<div className="tac pt60">
				<img src="/assets/images/success.png" width="100" height="100" />
				<p className="mt30 f28 strong"><FormattedMessage id='surrender_success' defaultMessage='退保成功'/></p>
			</div>
			<div className="f26" style={{lineHeight:3,margin:40}}>
			{window.LangMessage.surrender_tips}
			</div>
			<div>
				<Button type="primary" className="diy_background" onClick={() => { location.href = '/product-list-yj-en' }}>
				<FormattedMessage id='back_home' defaultMessage='返回首頁' />
				</Button>
			</div>
	  	</div>)
	}
}

export default App;